package com.ruoyi.accounting.service;

import com.ruoyi.accounting.domain.AccAccountingRecord;
import com.ruoyi.accounting.domain.dto.AccAccountingRecordImport;

import java.util.List;

/**
 * 流水策略接口
 */
public interface AccountingRecordStrategy {
    /**
     * 验证
     *
     * @param request
     */
    void validate(AccAccountingRecord request);

    /**
     * 处理
     *
     * @param request
     */
    void process(AccAccountingRecord request);


    /**
     * 获取流水类型
     *
     * @return
     */
    Integer getType();

    List<AccAccountingRecord> importFromExcel(List<AccAccountingRecordImport> importList, Long bookId);
}
